<?php

if(!defined('SMARTY_DIR')) {
	echo "'SMARTY_DIR' is NOT defined !!!";

	exit(1);
}
else
	require_once(SMARTY_DIR."Smarty.class.php");

class VsSmarty extends Smarty {

	private static $_Instance = NULL;

	static function Instance() {
		//echo "VsSmarty::Instance()";

		if(!self::$_Instance)
			self::$_Instance = new VsSmarty();

		return self::$_Instance;
	}
	//===========================================================================

	private function __construct() {
		$this->initSmarty();
	}
	//===========================================================================

	private function initSmarty() {
		global $lang;

		$this->template_dir = DIR_WWW."templates".DIR_SEP."themissingpiece".DIR_SEP."html".DIR_SEP.$lang;
		$this->compile_dir = DIR_ROOT."templates_c";
		//$this->config_dir = DIR_ROOT."configs";
		$this->cache_dir = DIR_ROOT."cache";
		$this->debugging = true;
	}
	//============================================================================


};

?>
